package com.fable.ntzw_ga.entity;

import java.time.LocalDateTime;
import java.io.Serializable;

import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.hibernate.annotations.Table;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Entity;

/**
 * 
 *
 * @author Created by gzh 2023-03-06 22:55:16
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Entity
@Accessors(chain = true)
@Table(appliesTo = "feast_recompense",comment="回礼记录表")
public class FeastRecompense implements Serializable {

    private static final long serialVersionUID = 1L;
    @Id
    @TableId(type = IdType.ASSIGN_UUID)
    @ApiModelProperty(value = "记录id")
    @Column(name = "id", columnDefinition = "varchar(32) COMMENT '记录id'")
    private String id;

    @ApiModelProperty(value = "被回礼人")
    @Column(name = "name", columnDefinition = "varchar(32) COMMENT '被回礼人'")
    private String name;

    @ApiModelProperty(value = "回礼金额")
    @Column(name = "recompense", columnDefinition = "double COMMENT '回礼金额'")
    private Double recompense;

    @ApiModelProperty(value = "回礼地址")
    @Column(name = "address", columnDefinition = "text(255) COMMENT '回礼地址'")
    private String address;

    @ApiModelProperty(value = "回礼时间")
    @Column(name = "create_time", columnDefinition = "datetime(0) COMMENT '回礼时间'")
    @DateTimeFormat("yyyy-MM-dd")
    private LocalDateTime createTime;

}
